package com.xiaohudie.Controller;

import com.xiaohudie.Pojo.Aop;
import com.xiaohudie.Pojo.xiaohudie;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/conf")
public class TestController {
    @GetMapping("/test")
    public String test(){
        return "测试哈哈哈";
    }

    @GetMapping("/Aop")
    @xiaohudie(type = "刘碟")
    @Aop
    public String Aop(@RequestParam("id") Integer id,@RequestParam("name") String name){
        System.out.println(id);
        System.out.println(name);
     return "测试Aop"+id+name;
    }
}
